package server;

import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.UnavailableException;

public interface Wrapper extends Container {

    public Servlet allocate() throws ServletException;
    //获取要加载的Servlet类的全类名
    public String getServletClass();
    //设置要加载的Servlet类的全类名
    public void setServletClass(String servletClass);
    public void unavailable(UnavailableException unavailable);
    public void setAvailable(long available);
    public long getAvailable();
    //根据name返回对应的初始化参数
    public String findInitParameter(String name);
    //返回所有初始化参数名
    public String[] findInitParameters();
    //添加初始化参数
    public void addInitParameter(String name, String value);
    //删除初始化参数
    public void removeInitParameter(String name);
    //当前servlet是否不可用
    public boolean isUnavailable();
    //卸载servlet实例
    public void unload() throws ServletException;
}
